package com.xiaoba.shoppingcart.domain;

import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xiaoba.common.core.annotation.Excel;
import com.xiaoba.common.core.web.domain.BaseEntity;

/**
 * 购物车明细表对象 cartitem
 *
 * @author gd
 * @date 2024-06-07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Cartitem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车明细Id */
    private Long detailId;

    /** skuId */
    @Excel(name = "skuId")
    private Long detailSkuId;

    /** sku图片 */
    @Excel(name = "sku图片")
    private String detailSkuImages;

    /** 标题 */
    @Excel(name = "标题")
    private String detailSkuTitle;

    /** 销售属性值 */
    @Excel(name = "销售属性值")
    private String detailSaleAttrs;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal detailSkuPrice;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long detailCount;

    /** 商品总价 */
    @Excel(name = "商品总价")
    private BigDecimal detailTotalmoney;

    /** 0  选中  1 未选中 （退出购物车选中的商品再次进入购物车还是选中） */
    @Excel(name = "0  选中  1 未选中 ", readConverterExp = "退=出购物车选中的商品再次进入购物车还是选中")
    private Long detailChecked;

    /** 购物车Id */
    @Excel(name = "购物车Id")
    private String detailCartid;


}
